import request from '@/utils/request'

// 查询调用/作业记录列表
export function listInvocationJob(query) {
  return request({
    url: '/ai/invocationJob/list',
    method: 'get',
    params: query
  })
}

// 查询调用/作业记录详细
export function getInvocationJob(jobId) {
  return request({
    url: '/ai/invocationJob/' + jobId,
    method: 'get'
  })
}

// 新增调用/作业记录
export function addInvocationJob(data) {
  return request({
    url: '/ai/invocationJob',
    method: 'post',
    data: data
  })
}

// 修改调用/作业记录
export function updateInvocationJob(data) {
  return request({
    url: '/ai/invocationJob',
    method: 'put',
    data: data
  })
}

// 删除调用/作业记录
export function delInvocationJob(jobId) {
  return request({
    url: '/ai/invocationJob/' + jobId,
    method: 'delete'
  })
}
